package cn.ekuma.epos.datalogic;

import java.util.Date;

import cn.ekuma.epos.datalogic.job.I_DataLogicJob;

import com.openbravo.bean.crm.CustomerScoreDiary;
import com.openbravo.bean.crm.CustomerScoreOPEnum;
import com.openbravo.bean.crm.CustomerStoreValueCard;
import com.openbravo.bean.crm.CustomerStoreValueCardDiary;
import com.openbravo.bean.crm.StoreValueCardOPEnum;
import com.openbravo.bean.crm.voucher.VoucherDiary;
import com.openbravo.bean.crm.voucher.VoucherOPEnum;
import com.openbravo.data.basic.BasicException;

public interface I_CustomerDebtProcesser extends I_DataLogicJob {
	void updateCurDebt( double debt , Date date, String customerId, String clientId) throws BasicException;
	void updateCurScore( double score , Date date, String customerId, String clientId) throws BasicException;
	
	int customerScoreDiaryInsert(CustomerScoreOPEnum opType, CustomerScoreDiary diary)throws BasicException;
	
	int transferStoreValueCardValue(String descId, CustomerStoreValueCardDiary diary)throws BasicException;

	CustomerStoreValueCard findStoreValueCardByNum(String value) throws BasicException;
	
	int customerStoreValueCardDiaryInsert( StoreValueCardOPEnum opType, CustomerStoreValueCardDiary diary)throws BasicException;
	
	int voucherDiaryInsert(VoucherOPEnum opType, VoucherDiary diary)throws BasicException;
}
